from flask import Flask, render_template
import request
app = Flask(__name__)


@app.route('/index', methods=['GET', 'POST'])
def index():
    if request.method == 'POST':
        print(request.form)
        print(request.form.get('username'))

        return 'ok'
    return render_template('index.html')


if __name__ == '__main__':
    app.run(debug=True)
